﻿using MemberManagement.Attributes;
using MemberManagement.Entity.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MemberManagement.Entity
{
    /// <summary>
    /// 充值
    /// </summary>
    public class Recharge
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 会员id
        /// </summary>
        [MaxLength(36)]
        public string MemberId { get; set; }
        /// <summary>
        /// 充值金额
        /// </summary>
        [DecimalPrecision(18,2)]
        public decimal Amount { get; set; }
        /// <summary>
        /// 余额
        /// </summary>
        [DecimalPrecision(18, 2)]
        public decimal Balance { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public RechargeType_Enum Type { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public System.DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }
    }



}
